package com.zjp.mall.mapper;

import com.zjp.mall.cache.annotation.RedisCache;
import com.zjp.mall.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.cache.CacheManager;
import org.springframework.data.redis.cache.RedisCacheManager;
import org.springframework.stereotype.Repository;
public interface UserMapper {

    int deleteByPrimaryKey(Integer lid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer lid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @RedisCache(type = User.class)
    User selectByOpenId(String strOpenId);
}